﻿@model TCM.Agenda

<script src="~/Scripts/jquery-1.8.2.min.js"></script>
<script src="~/Scripts/jquery.validate.min.js"></script>
<script src="~/Scripts/jquery.validate.unobtrusive.min.js"></script>

@using (Html.BeginCollectionItem("Agenda"))
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)    
    
    <td class="datepicker">
        @Html.TextBoxFor(model => model.FromDateTime)
    </td>

    <td class="datepicker">
        @Html.TextBoxFor(model => model.ToDateTime)
    </td>
    <td>
        @if (Model != null)
        {
            if (Model.AgendaID != Guid.Empty)
            {
            @Html.CheckBoxFor(model => model.DeleteByUI)    
            }
        }
        <div class="HiddenFor">
            @Html.HiddenFor(model => model.CourseID)
            @Html.HiddenFor(model => model.AgendaID)
        </div>
    </td>
    
}

@*<div>
    @Html.ActionLink("Back to List", "Index")
</div>*@
<script type="text/javascript">
    $(document).ready(function () {
        $('.datepicker input').datepicker({
            showOn: "button",
            buttonImage: "/content/themes/base/images/calendar.png",
            buttonImageOnly: true
        });
    }
    );
</script>
<style type="text/css">
    .datepicker input[type="text"] {
        width: 200px;
    }

    .datepicker img {
        width:16px;
        margin-left: -20px;
        top: 1px;
        margin-bottom: -3px;
        z-index:0;
    }
</style>
